
import request from '@/utils/request'
import qs from 'qs'

// 心愿查询 /xinyuan/query
export const xinYuanPage = params => {
  return request({
    url: '/xinyuan/query',
    method: 'GET',
    params
  })
}

// 删除心愿 xinyuan/deleteById
export const deleteXinYuan = params => {
  return request({
    url: '/xinyuan/deleteById?' + qs.stringify(params),
    method: 'POST'
  })
}

// 审核心愿 xinyuan/audit
export const auditXinYuan = params => {
  return request({
    url: '/xinyuan/audit',
    method: 'POST',
    params
  })
}
